# Pyglet
import pyglet
from pyglet import font

# Cocos2d
from cocos.director import director
from cocos.scene import Scene
from cocos.scenes import *

# Python
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))

# BnB
from CopyrightLicense import L_CopyrightLicense

GameTitle='Brick & Blast'
GameVersion='0.2.7'
GameAuthor='Andematunum'
GameReleaseYear='2009'

def makeGameIdString():
  return GameTitle+' v'+GameVersion+' - (c) '+GameReleaseYear+' by '+GameAuthor

if __name__ == '__main__':
  pyglet.resource.path.append('data/gfx')
  pyglet.resource.path.append('data/snd')
  pyglet.resource.reindex()
  font.add_directory('data/fonts')

  director.init(resizable=False, width=1024, height=768,caption=makeGameIdString())
  director.run(Scene(L_CopyrightLicense()))
